import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * broadcast模块-象数文件
 */
@Entity('broadcast_file')
export class BroadcastFileEntity extends BaseEntity {
  @Column({ comment: '文件名称' })
  name: string;

  @Column({ comment: '文件类别' })
  type: string;

  @Column({ comment: '文件链接' })
  url: string;

  @Column({ comment: '文件大小' })
  size: number;


  @Column({
    comment: '音频时长-秒', default: 0, type: 'decimal',
    precision: 10,
    scale: 2,
  })
  duration: number;
}
